package com.guapi.dao;

import com.guapi.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mybatis与数据库交互
 * @author 瓜皮哦
 */
@Mapper
public interface UserMapper {

    User selectByUserId(int userId);

    User selectByUserName(String userName);

    User selectByUserEmail(String email);

    int insertUser(User user);

    int updateStatus(int id,int status);

    int updateHeader(int id,String header);

    int updatePassword(int id,String password);

    int updateAddress(int id, String address);


}
